package com.ifp.opengate.boot.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 验证器数据
 * </P>
 *
 * @author zhuzh@belink.com
 * @version 0.0.1
 * @className ValidatorForm
 * @sine 2020/3/26 10:03
 */
public class ValidatorForm {
    /**
     * 校验类型
     */
    private String type;
    /**
     * 校验正则表达
     */
    private String regex;
    /**
     * 校验失败时候的错误提示
     */
    private String errorMsg;
    /**
     * paramMappingKey : custName paramOrder : 1 paramParentId : paramCName : 用户名称 paramPosition : 0 paramName :
     * username paramEncode : paramIndex : 0 paramType : 0 paramDesc : 用户名称 paramLength : 20 paramIsCheck : 1
     * paramDirection : 0 paramValueType : String paramId : serviceId : paramValue : isEncode : 0 checkRule : NotEmpty
     * checkPattern : encodeMappingKey : encodeType:
     */

    private String paramMappingKey;
    private String paramOrder;
    private String paramParentId;
    private String paramCName;
    private String paramPosition;
    private String paramName;
    private String paramEncode;
    private String paramIndex;
    private String paramType;
    private String paramDesc;
    private String paramLength;
    private String paramIsCheck;
    private String paramDirection;
    private String paramValueType;
    private String paramId;
    private String serviceId;
    private String paramValue;
    private String isEncode;
    private String checkRule;
    private String checkPattern;
    private String encodeMappingKey;
    /**
     * 是否过滤
     */
    private String isFilter;

    private List<ValidatorForm> formList = new ArrayList<>();

    /**
     * 加密类型
     */
    private String encodeType;

    /**
     * 是否必输：M必输，O可选，C条件可选
     */
    private String isNeed;

    public String getIsFilter() {
        return isFilter;
    }

    public void setIsFilter(String isFilter) {
        this.isFilter = isFilter;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getParamMappingKey() {
        return paramMappingKey;
    }

    public void setParamMappingKey(String paramMappingKey) {
        this.paramMappingKey = paramMappingKey;
    }

    public String getParamOrder() {
        return paramOrder;
    }

    public void setParamOrder(String paramOrder) {
        this.paramOrder = paramOrder;
    }

    public String getParamParentId() {
        return paramParentId;
    }

    public void setParamParentId(String paramParentId) {
        this.paramParentId = paramParentId;
    }

    public String getParamCName() {
        return paramCName;
    }

    public void setParamCName(String paramCName) {
        this.paramCName = paramCName;
    }

    public String getParamPosition() {
        return paramPosition;
    }

    public void setParamPosition(String paramPosition) {
        this.paramPosition = paramPosition;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public String getParamEncode() {
        return paramEncode;
    }

    public void setParamEncode(String paramEncode) {
        this.paramEncode = paramEncode;
    }

    public String getParamIndex() {
        return paramIndex;
    }

    public void setParamIndex(String paramIndex) {
        this.paramIndex = paramIndex;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public String getParamDesc() {
        return paramDesc;
    }

    public void setParamDesc(String paramDesc) {
        this.paramDesc = paramDesc;
    }

    public String getParamLength() {
        return paramLength;
    }

    public void setParamLength(String paramLength) {
        this.paramLength = paramLength;
    }

    public String getParamIsCheck() {
        return paramIsCheck;
    }

    public void setParamIsCheck(String paramIsCheck) {
        this.paramIsCheck = paramIsCheck;
    }

    public String getParamDirection() {
        return paramDirection;
    }

    public void setParamDirection(String paramDirection) {
        this.paramDirection = paramDirection;
    }

    public String getParamValueType() {
        return paramValueType;
    }

    public void setParamValueType(String paramValueType) {
        this.paramValueType = paramValueType;
    }

    public String getParamId() {
        return paramId;
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    public String getIsEncode() {
        return isEncode;
    }

    public void setIsEncode(String isEncode) {
        this.isEncode = isEncode;
    }

    public String getCheckRule() {
        return checkRule;
    }

    public void setCheckRule(String checkRule) {
        this.checkRule = checkRule;
    }

    public String getCheckPattern() {
        return checkPattern;
    }

    public void setCheckPattern(String checkPattern) {
        this.checkPattern = checkPattern;
    }

    public String getEncodeMappingKey() {
        return encodeMappingKey;
    }

    public void setEncodeMappingKey(String encodeMappingKey) {
        this.encodeMappingKey = encodeMappingKey;
    }

    public String getEncodeType() {
        return encodeType;
    }

    public void setEncodeType(String encodeType) {
        this.encodeType = encodeType;
    }

    public List<ValidatorForm> getFormList() {
        return formList;
    }

    public void setFormList(List<ValidatorForm> formList) {
        this.formList = formList;
    }

    public String getIsNeed() {
        return isNeed;
    }

    public void setIsNeed(String isNeed) {
        this.isNeed = isNeed;
    }

    @Override
    public String toString() {
        return "ValidatorForm [type=" + type + ", regex=" + regex + ", errorMsg=" + errorMsg + ", paramMappingKey="
            + paramMappingKey + ", paramOrder=" + paramOrder + ", paramParentId=" + paramParentId + ", paramCName="
            + paramCName + ", paramPosition=" + paramPosition + ", paramName=" + paramName + ", paramEncode="
            + paramEncode + ", paramIndex=" + paramIndex + ", paramType=" + paramType + ", paramDesc=" + paramDesc
            + ", paramLength=" + paramLength + ", paramIsCheck=" + paramIsCheck + ", paramDirection=" + paramDirection
            + ", paramValueType=" + paramValueType + ", paramId=" + paramId + ", serviceId=" + serviceId
            + ", paramValue=" + paramValue + ", isEncode=" + isEncode + ", checkRule=" + checkRule + ", checkPattern="
            + checkPattern + ", encodeMappingKey=" + encodeMappingKey + ", isFilter=" + isFilter + ", formList="
            + formList + ", encodeType=" + encodeType + ", isNeed=" + isNeed + "]";
    }
}
